package gui;

import java.awt.BorderLayout;

import javax.swing.JLabel;
import javax.swing.JPanel;

public class StatusBar extends JPanel {

	private static final long serialVersionUID = -7095937163505720335L;
	private JLabel statusText;
	
	public StatusBar() {
		this.setLayout(new BorderLayout());
		statusText = new JLabel("Welcome to Geostructure 3D");
		add(statusText, BorderLayout.CENTER);
	}
	
	public void setStatus(String text) {
		statusText.setText(text);
		revalidate();
	}
	
	public void clearStatus() {
		statusText.setText(" ");
		revalidate();
	}
	
}
